package ualrcdg.shared.dto;

/**
 * Base class for all CDG game media objects. See CDG XML Specifications: Game Descriptor Files.
 */
public abstract class Media
{
	protected final String id;
	protected final String name;

	/**
	 * Primary constructor
	 *
	 * @param id the id of the Media object to be created
	 * @param name the name of the Media object to be created
	 */
	protected Media( String id, String name )
	{
		this.id = id;
		this.name = name;
	}

	/*
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString( )
	{
		return "Media [id=" + id + ", name=" + name + "]";
	}

	/**
	 * @return the id of this Media instance
	 */
	public String getId( )
	{
		return id;
	}

	/**
	 * @return the name of this Media instance
	 */
	public String getName( )
	{
		return name;
	}
}
